import request from '@/utils/request'

/**
 * 获取字典项
 */
export function getDictSelect(type) {
  return request({
    url: `/system/DictionaryData/getDicListByType`,
    method: 'post',
    data: { dictionaryType: type }
  })
}

// 获取 图片流
export function getImageStream(url) {
  return request({
    url,
    method: 'get',
    headers: {
      responseType: "blob"
    }
  })
}